"""
@name : dec
@author : wenyao
@projectname: sanchuanglianxi
"""
import time

def cost(func):
    def _cost(*args, **kwargs):
        start = time.time()
        result = func(*args, **kwargs)
        end = time.time()
        print("cost time ",end-start)
        return result
    return _cost